cmake_minimum_required(VERSION 3.5)

project(rostest_subscriber)
SET(CMAKE_BUILD_TYPE "Debug")
SET(CMAKE_CXX_STANDARD 17)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
SET(CMAKE_CXX_EXTENSIONS OFF)
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rosbag2_cpp REQUIRED)
#find_package(test_msgs REQUIRED)
#find_package(Protobuf REQUIRED)
#find_package(geometry_msgs REQUIRED)
#find_package(rosgraph_msgs REQUIRED)

#add_library(sim_proto SHARED ${PROTO_HDRS} ${PROTO_SRCS})
#target_include_directories(sim_proto
#        PUBLIC ${CMAKE_CURRENT_BINARY_DIR}
#        PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

include_directories(.)
#include_directories(modules/scenario_manager)
#include_directories(modules/task)
#include_directories(modules/bag_recorder)

#add_executable(rostest_publisher publisher.cc)
add_executable(rostest_subscriber subscriber.cc)

ament_target_dependencies(rostest_subscriber rclcpp)
#target_link_libraries(sim-engine sim_proto pthread dl protobuf rt)

#install(TARGETS
#  sim-engine
#  sim-engine-clt
#  sim_proto
#  DESTINATION lib/${PROJECT_NAME})

#install(DIRECTORY
#  launch
#  DESTINATION share/${PROJECT_NAME}/
#)
ament_package()